package com.zy.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.business.domain.TbOverwork;
import com.zy.business.domain.TbOverworkAudit;
import com.zy.business.domain.vo.OverworkDto;
import com.zy.common.core.page.TableDataInfo;

import java.util.List;
import java.util.Map;

/**
* @Description: 加班实现类
* @Author: zhangxiaojia
* @Date: 2020/3/26
*/
public interface OverworkService extends IService<TbOverwork> {

    /**
     * 新增加班
     * @param overwork
     * @return
     */
    int addOverwork(TbOverwork overwork);

    /**
     * 修改加班
     * @param overwork
     * @return
     */
    int editOverwork(TbOverwork overwork);

    /**
     * 审核加班
     * @param audit
     * @return
     */
    int audit(TbOverworkAudit audit);

    /**
     * 获取加班统计数据
     * @return
     */
    TableDataInfo getTjData();

    /**
     * 分页获取加班列表
     * @param overworkDto
     * @return
     */
    List<TbOverwork> list(OverworkDto overworkDto);

    /**
     * 获取加班详情
     * @param overworkId
     * @return
     */
    TbOverwork getDetail(Long overworkId);

    Map<String,Object> getAuditList(Long overworkId);
}
